# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):
    
    def forwards(self, orm):
	# Adding field 'Edible.location'
	db.add_column('ue_edible', 'location',  self.gf('django.contrib.gis.db.models.fields.PointField')(blank=True), keep_default=False)
  
    def backwards(self, orm):
	# Deleting field 'Edible.location'
	db.delete_column('ue_edible', 'location')
        
    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'contenttypes.contenttype': {
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'ue.comment': {
            'Meta': {'object_name': 'Comment'},
            'comment': ('django.db.models.fields.CharField', [], {'max_length': '2048'}),
            'edible': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Edible']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [], {}),
            'rating': ('django.db.models.fields.IntegerField', [], {}),
            'time_stamp': ('django.db.models.fields.TimeField', [], {'auto_now': 'True'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
        },
        'ue.commentphoto': {
            'Meta': {'object_name': 'CommentPhoto'},
            'caption': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Comment']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'submitter': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
            'time_stamp': ('django.db.models.fields.TimeField', [], {'auto_now': 'True'})
        },
        'ue.edibility': {
            'Meta': {'object_name': 'Edibility'},
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'})
        },
        'ue.edible': {
            'Meta': {'object_name': 'Edible'},
            'chemSprayDate': ('django.db.models.fields.TimeField', [], {}),
            'edible_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.EdibleType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [], {}),
            'local_risks': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),

             'location': ('django.contrib.gis.db.models.fields.PointField', [], {'blank': 'True'}),
            'time_stamp': ('django.db.models.fields.TimeField', [], {'auto_now': 'True'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
        },
        'ue.ediblephoto': {
            'Meta': {'object_name': 'EdiblePhoto'},
            'caption': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'edible': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Edible']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'submitter': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
            'time_stamp': ('django.db.models.fields.TimeField', [], {'auto_now': 'True'})
        },
        'ue.edibletype': {
            'Meta': {'object_name': 'EdibleType'},
            'common_name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
            'edibility': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Edibility']"}),
            'formal_name': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
            'harvesting_info': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'ident_info': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
            'med_use': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'prep_info': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
            'preserving_info': ('django.db.models.fields.CharField', [], {'max_length': '2048', 'blank': 'True'}),
            'season_info': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['ue.Season']", 'symmetrical': 'False', 'blank': 'True'}),
            'warnings': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'blank': 'True'})
        },
        'ue.recipe': {
            'Meta': {'object_name': 'Recipe'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'instructions': ('django.db.models.fields.CharField', [], {'max_length': '8192'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'})
        },
        'ue.recipecomment': {
            'Meta': {'object_name': 'RecipeComment'},
            'comment': ('django.db.models.fields.CharField', [], {'max_length': '2048'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'index': ('django.db.models.fields.IntegerField', [], {}),
            'rating': ('django.db.models.fields.IntegerField', [], {}),
            'recipe': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Recipe']"}),
            'submitter': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
            'time_stamp': ('django.db.models.fields.TimeField', [], {'auto_now': 'True'}),
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200'})
        },
        'ue.recipephoto': {
            'Meta': {'object_name': 'RecipePhoto'},
            'caption': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'photo': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
            'recipe': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['ue.Recipe']"}),
            'submitter': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
        },
        'ue.season': {
            'Meta': {'object_name': 'Season'},
            'end_date': ('django.db.models.fields.DateField', [], {}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'start_date': ('django.db.models.fields.DateField', [], {})
        }
    }

    complete_apps = ['ue']

